<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HTML PUBLIC "" "">
<f:view xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core"
	xmlns:w="http://www.apusic.com/jsf/widget" xmlns:layout="http://www.apusic.com/jsf/layout"
	xmlns:ui="http://java.sun.com/jsf/facelets" renderKitId="AJAX"
	xmlns:h="http://java.sun.com/jsf/html" xmlns:om="http://www.apusic.com/jsf/misc">
	<w:page>
		<ui:composition>
			<om:elite>
				<![CDATA[
					define att_id="edit";
					if(defined(id)){
			 			att_id=id;
			 		}					
					define attachmentType_def = "";
					if(defined(attachmentType)){
			 			attachmentType_def=attachmentType;
			 		}
					define height_def = 130;
					if(defined(height))
			 			height_def=height;
					define width_def = 600;
					if(defined(width))
			 			width_def=width;
			]]>
			</om:elite>
			<w:iframe id="#{att_id}_attach_frame" name="#{att_id}_attach_frame" frameborder="0"
				src="/component/listAttachmentForEdit.faces?id=#{att_id}&amp;beanId=#{beanId}&amp;beanClass=#{beanClass}&amp;attachmentType=#{attachmentType_def}"
				width="#{width_def}" height="#{height_def}"></w:iframe>
			<w:fileUploadDialog show="false" id="#{att_id}_fileUpload" fileSizeMax="2147483648"
				maximizable="true" minimizable="false" constrain="true" constrainHeader="true"
				jsvar="#{att_id}_fileUpload_jsvar" onclose="javascript:refreshAttach(#{att_id}_attach_frame);"
				onuploadcomplete="closeAttachWindow(#{att_id}_fileUpload_jsvar,#{att_id}_attach_frame)">
			</w:fileUploadDialog>
		</ui:composition>
	</w:page>
</f:view>
